import mcpi.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft.create()
allIds = mc.getPlayerEntityIds()
mc.entity.setPos(allIds[0],0,0,0)
x, y, z = mc.entity.getTilePos(allIds[0])

def buildRoad(x,y,z):
    mc.setBlocks(x-100,y,z-1,x+100,y,z+1,block.STONE)
    mc.setBlocks(x-1,y,z-100,x+1,y,z+100,block.STONE)
    mc.setBlocks(x-100,y+1,z-1,x+100,y+2,z+1,block.AIR)
    mc.setBlocks(x-1,y+1,z-100,x+1,y+2,z+100,block.AIR)

    mc.setBlock(x,y,z,block.NETHER_BRICK)
buildRoad(x,y,z)
